package messagesPacks;

import messagesPacks.GenericMessage.msgType;

public class LoginMessage extends GenericMessage 
{
	private static final long serialVersionUID = 1L;
	private String username;
	private String password;
	private int loginResult = -9;
	private int loginPermmision = 0 ;
	private String Fname ; 
	private String Lname;
	private int status;
	private String address;
	private String email;
	private String phone;
	

	public LoginMessage()
	{
		this.type = msgType.LoginMSG;
		this.username =("");
		this.password =("");
	}
	
	public LoginMessage(String user,String pass)
	{
		this.type = msgType.LoginMSG;
		this.username = user;
		this.password = pass;
	}
	
	public String getUser()
	{
		return this.username;
	}
	public void setUser(String id)
	{
		 this.username = id;
	}

	public String getPassword()
	{
		return this.password;
	}
	
	public void setPass(String pass)
	{
		 this.password = pass;
	}
	
    public int getLoginResult()
    {
    	return this.loginResult;
    }
	
    public void setLoginPermmision(int permmision)
    {
    	if( permmision > 0 && permmision < 6)
    	 this.loginPermmision = permmision ; 
    }
	
    public int getLoginPermmision()
    {
    	return this.loginPermmision;
    }
	
    public void setLoginResult(int result)
    {
    	this.loginResult = result ; 
    }

	public String getFname() 
	{
		return this.Fname;
	}

	public void setFname(String fname) 
	{
		this.Fname = fname;
	}

	public String getLname()
	{
		return this.Lname;
	}

	public void setLname(String lname) 
	{
		this.Lname = lname;
	}

	public int getStatus()
	{
		return this.status;
	}

	public void setStatus(int status)
	{
		this.status = status;
	}

	public String getAddress()
	{
		return this.address;
	}

	public void setAddress(String address)
	{
		this.address = address;
	}

	public String getEmail()
	{
		return this.email;
	}

	public void setEmail(String email) 
	{
		this.email = email;
	}

	public String getPhone()
	{
		return this.phone;
	}

	public void setPhone(String phone) 
	{
		this.phone = phone;
	}
    
    
}
	
